package cn.edu.scau.cmi.huhaoxian.simpleFactoryPattern.factory;

import cn.edu.scau.cmi.huhaoxian.simpleFactoryPattern.domain.*;
import cn.edu.scau.cmi.huhaoxian.simpleFactoryPattern.iproduct.Meat;

public class MeatFactory {
	
	public static Meat getMeat(String meatType) {
		switch(meatType) {
		case "beef":
			return new Beef();
		
		case "chicken":
			return new Chicken();
		case "pork":
			return new Pork();
		}
		return null;
	}

}
